package com.wesley.client;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;

public class ReScanActivity extends Activity implements OnClickListener {
	private Button btn_rescan, btn_close;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		getWindow().requestFeature(Window.FEATURE_LEFT_ICON);
		setContentView(R.layout.rescan);
		getWindow().setFeatureDrawableResource(Window.FEATURE_LEFT_ICON,
				R.drawable.acticon);

		btn_rescan = (Button) findViewById(R.id.btnReScan);
		btn_close = (Button) findViewById(R.id.btnClose);

		btn_rescan.setOnClickListener(this);
		btn_close.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btnReScan:
			Intent intent = new Intent(ReScanActivity.this,ScanActivity.class);
			startActivity(intent);
			finish();
			break;
		case R.id.btnClose:
			finish();
			break;
		default:
			break;
		}

	}

}
